<%@ page language="java" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>Message Board Register</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <form id="login_form" name="login_form" method="post" action="RegisterServlet" >
    <table width="429" border="0" align="center">
    	<tr>
  		<td colspan="3" >&nbsp;
  			<%
  				String error_msg = (String)request.getAttribute("reg_error");
  				if( error_msg != null) {
  					out.println("<font color='red' >" + error_msg + "</font>");
  				}
  			%>
  		</td>
  	</tr>
  <tr>
    <td width="71">Username:</td>
    <td width="164"><label>
      <input name="username" type="text" id="username" size="21" maxlength="30" />
    </label></td>
    <td width="180">&nbsp;</td>
  </tr>
  <tr>
    <td>Password:</td>
    <td><label>
      <input name="pwd" type="password" id="pwd" size="21" maxlength="30" />
    </label></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Confirm:</td>
    <td><label>
      <input name="comfirm_pwd" type="password" id="comfirm_pwd" size="21" maxlength="30" />
    </label></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">
      <div align="center">
        <input type="submit" name="submit" id="submit" value="Register" />
        <input type="reset" name="reset" id="reset" value="Reset" />
        </div>
   </td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
  </body>
</html>
